package com.xiaobaibai.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-11-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("payment_record")
@ApiModel(value="PaymentRecord对象", description="")
public class PaymentRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "对应的订单号(当作主键)")
    @TableId(value = "order_id", type = IdType.INPUT)
    private String orderId;

    @ApiModelProperty(value = "微信交易订单号(回调不是必传的)")
    @TableField("transaction_id")
    private String transactionId;

    @ApiModelProperty(value = "对应的金额(元,不一定有)")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "订单状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "付款时间(不一定有)")
    @TableField("success_time")
    private Date successTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
